package com.ssu.judea.travlog;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class ViewActivity extends TabActivity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.view);
		
		TabHost mTabHost = getTabHost();
		
		
		mTabHost.addTab(mTabHost.newTabSpec("Calendar")
                .setIndicator("Calendar")
                .setContent(new Intent(getApplicationContext(), ViewCalendarActivity.class)));
		Intent mylist = new Intent(getApplicationContext(), ViewListActivity.class);
		mylist.setAction("mylist");
		mTabHost.addTab(mTabHost.newTabSpec("MyList")
                .setIndicator("MyList")
                .setContent(mylist));
		Intent myFollowersList = new Intent(getApplicationContext(), ViewListActivity.class);
		myFollowersList.setAction("Followers");
		mTabHost.addTab(mTabHost.newTabSpec("Followers")
                .setIndicator("Followers")
                .setContent(myFollowersList));
		
		mTabHost.addTab(mTabHost.newTabSpec("Recent")
				.setIndicator("Recent")
				.setContent(new Intent(getApplicationContext(), ViewRecentActivity.class)));
		
		/*
		mTabHost.addTab(mTabHost.newTabSpec("Map")
				.setIndicator("Map")
				.setContent(new Intent(this, ViewMapActivity.class)));
		*/
	}
}
